<?php
$title = ('' == $this->row['title'])
	? $this->row['name']
	: $this->row['title'];

!strlen($title) or $this->headTitle($title);

/* @var $headMeta Zend_View_Helper_HeadMeta */
$headMeta = $this->getHelper('HeadMeta');

!strlen($this->row['meta_keywords']) or $headMeta->setName('keywords', $this->row['meta_keywords']);
!strlen($this->row['meta_description']) or $headMeta->setName('description', $this->row['meta_description']);

$time_create = strtotime($this->row['time_create']);

$content = strlen($this->row['content']) > 0
	? $this->row['content']
	: $this->row['description'];
?>
<dl class="kx_news kx_display">
	<dt class="kx_time">
		<em class="kx_day"><?php print date('d', $time_create)?></em>
		<em class="kx_month"><?php print $this->translate(strtolower(date('F', $time_create)))?></em>
		<em class="kx_year"><?php print date('Y', $time_create)?></em>
	</dt>
	<dd class="kx_content">
		<div class="kx_head">
			<h3 class="kx_title"><?php print $this->escape($this->row['name'])?></h3>

			<?php if (count($site = $this->urlParams('fromSite'))):?>
				<a class="kx_back" href="<?php print $this->url(array('alias'=>$site['alias']),'site',true)?>">&laquo; powrót do strony <em><?php print $this->escape($site['name'])?></em></a>
			<?php endif;?>
		</div>
		
		<div class="kx_description"><?php print $this->getHelper('renderer')->render($content);?></div>
	</dd>
</dl>